<body <?php if($this->session->userdata('id') =='') { echo 'class="login"'; } ?>>
<!-- Neu da dang nhap thi hien menu và header -->
<?php
if($this->session->userdata('logedin')){
            if($this->session->userdata('id')!='')
            {
                $data_user = $this->common_model->getone('users',array('id'=>$this->session->userdata('id')));
                $this->session->set_userdata('upanh',$this->session->userdata('id'));//nho bo khi hoan thanh $this->session->userdata('id');
?>
<!-- HEADER -->
	<header class="navbar clearfix" id="header">
		<div class="container">
				<div class="navbar-brand">
					<!-- COMPANY LOGO -->
					<a href="http://idvietnam.com" target="_blank">
						<img src="<?php echo base_url(); ?>skin/admin/img/logo/logo.png" alt="CÔNG TY CỔ PHẦN ĐẦU TƯ Ý TƯỞNG VIỆT" class="img-responsive" height="30" width="80" />
					</a>
					<!-- /COMPANY LOGO -->
					<!-- SIDEBAR COLLAPSE -->
					<div id="sidebar-collapse" class="sidebar-collapse btn tip-bottom" data-toggle="tooltip" title="Ẩn hiện thanh bên">
						<i class="fa fa-reorder" data-icon1="fa fa-reorder" data-icon2="fa fa-reorder"></i>
					</div>
					<!-- /SIDEBAR COLLAPSE -->
				</div>
				<!-- BEGIN TOP NAVIGATION MENU -->

				<ul class="nav navbar-nav pull-right">
					<!-- BEGIN INBOX DROPDOWN -->
					<!--li class="dropdown" id="header-message">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
						<i class="fa fa-envelope" style="color:#fff!important;"></i>
						<span class="badge">3</span>
						</a>
						<ul class="dropdown-menu inbox">
							<li class="dropdown-title">
								<span><i class="fa fa-envelope-o"></i> Bạn có 3 thông báo</span>
								<span class="compose pull-right tip-right" title="Compose message"><i class="fa fa-pencil-square-o"></i></span>
							</li>
							<li>
								<a href="#">
									<img src="<?php echo $data_user->avartar; ?>" alt="<?php echo $data_user->username; ?>" alt="" />
									<span class="body">
										<span class="from">Jane Doe</span>
										<span class="message">
										Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse mole ...
										</span>
										<span class="time">
											<i class="fa fa-clock-o"></i>
											<span>Just Now</span>
										</span>
									</span>

								</a>
							</li>
							<li>
								<a href="#">
									<img src="<?php echo $data_user->avartar; ?>" alt="<?php echo $data_user->username; ?>" alt="" />
									<span class="body">
										<span class="from">Vince Pelt</span>
										<span class="message">
										Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse mole ...
										</span>
										<span class="time">
											<i class="fa fa-clock-o"></i>
											<span>15 min ago</span>
										</span>
									</span>

								</a>
							</li>
							<li>
								<a href="#">
									<img src="<?php echo $data_user->avartar; ?>" alt="<?php echo $data_user->username; ?>" alt="" />
									<span class="body">
										<span class="from">Debby Doe</span>
										<span class="message">
										Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse mole ...
										</span>
										<span class="time">
											<i class="fa fa-clock-o"></i>
											<span>2 hours ago</span>
										</span>
									</span>

								</a>
							</li>
							<li class="footer">
								<a href="#">Xem tất cả tin nhắn <i class="fa fa-arrow-circle-right"></i></a>
							</li>
						</ul>
					</li-->
					<!-- END INBOX DROPDOWN -->
					<!-- BEGIN USER LOGIN DROPDOWN -->
					<li class="dropdown" id="header-user">
						<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" title="Menu tài khoản" class="btn dropdown-toggle" data-toggle="dropdown">
							<img alt="" src="<?php echo $data_user->avartar; ?>" alt="<?php echo $data_user->username; ?>" />
							<span class="username">Admin</span>
							<i class="fa fa-angle-down"></i>
						</a>
						<ul class="dropdown-menu">
							<li><a href="#"><i class="fa fa-user"></i> Tài khoản của tôi</a></li>
							<li><a href="#"><i class="fa fa-cog"></i> Cài đặt tài khoản</a></li>
							<li><a href="<?php echo base_url().'admin/logout';?>"><i class="fa fa-power-off"></i> Log Out</a></li>
						</ul>
					</li>
					<!-- END USER LOGIN DROPDOWN -->
				</ul>
				<!-- END TOP NAVIGATION MENU -->
		</div>
	</header>
	<!--/HEADER -->
<?php
            }
        }

 ?>
 <!-- End Neu da dang nhap thi hien menu -->
    <!-- PAGE -->